home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Businessƒ / TimeMgmt / AppointmentMaster™ / background_3622.xml < prev    next >
Encoding:
Extensible Markup Language  |  1992-08-11  |  38.9 KB  |  804 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3622</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_8389.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_4285.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>172</left>
  23.             <top>69</top>
  24.             <right>484</right>
  25.             <bottom>96</bottom>
  26.         </rect>
  27.         <style>shadow</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <true /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font></font>
  37.         <textSize>14</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>18</textHeight>
  40.         <name>ClientName</name>
  41.         <script>
  42. </script>
  43.     </part>
  44.     <part>
  45.         <id>2</id>
  46.         <type>field</type>
  47.         <visible> <true /> </visible>
  48.         <dontWrap> <false /> </dontWrap>
  49.         <dontSearch> <false /> </dontSearch>
  50.         <sharedText> <false /> </sharedText>
  51.         <fixedLineHeight> <true /> </fixedLineHeight>
  52.         <autoTab> <false /> </autoTab>
  53.         <lockText> <false /> </lockText>
  54.         <rect>
  55.             <left>163</left>
  56.             <top>96</top>
  57.             <right>378</right>
  58.             <bottom>117</bottom>
  59.         </rect>
  60.         <style>rectangle</style>
  61.         <autoSelect> <false /> </autoSelect>
  62.         <showLines> <false /> </showLines>
  63.         <wideMargins> <true /> </wideMargins>
  64.         <multipleLines> <false /> </multipleLines>
  65.         <reservedFamily> 0 </reservedFamily>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>left</textAlign>
  69.         <font>Chicago</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>plain</textStyle>
  72.         <textHeight>16</textHeight>
  73.         <name>Date</name>
  74.         <script>on closeField
  75. convert field id 2 to long date
  76. show field id 50
  77. show field id 51
  78. show field id 53
  79. show bkgnd button id 54
  80. hide bkgnd button id 57
  81. apptTimes thisDay
  82. end closeField
  83.  
  84. on mouseUp
  85. set lockText of field id 2 to false
  86. set lockText of field id 43 to true
  87. put field id 47 into myName  --field id 47 is field "My Name"
  88. apptTimes thisDay
  89. tabkey
  90. tabkey
  91. end mouseUp
  92. </script>
  93.     </part>
  94.     <part>
  95.         <id>43</id>
  96.         <type>field</type>
  97.         <visible> <true /> </visible>
  98.         <dontWrap> <false /> </dontWrap>
  99.         <dontSearch> <false /> </dontSearch>
  100.         <sharedText> <false /> </sharedText>
  101.         <fixedLineHeight> <true /> </fixedLineHeight>
  102.         <autoTab> <false /> </autoTab>
  103.         <lockText> <false /> </lockText>
  104.         <rect>
  105.             <left>430</left>
  106.             <top>95</top>
  107.             <right>483</right>
  108.             <bottom>118</bottom>
  109.         </rect>
  110.         <style>rectangle</style>
  111.         <autoSelect> <false /> </autoSelect>
  112.         <showLines> <false /> </showLines>
  113.         <wideMargins> <true /> </wideMargins>
  114.         <multipleLines> <false /> </multipleLines>
  115.         <reservedFamily> 0 </reservedFamily>
  116.         <titleWidth>0</titleWidth>
  117.         <icon>0</icon>
  118.         <textAlign>left</textAlign>
  119.         <font>Chicago</font>
  120.         <textSize>12</textSize>
  121.         <textStyle>plain</textStyle>
  122.         <textHeight>16</textHeight>
  123.         <name>Time</name>
  124.         <script>on closeField
  125. set cursor to 4
  126. put field id 43 into holder
  127. put field id 43 into converter
  128. put char 1 of holder into h1
  129. put char 1 of converter into c1
  130. put empty into char 1 of holder
  131. put empty into char 1 of converter
  132. get the number of chars of field id 43
  133. put it into numChar
  134. if numChar = 1 and c1 = 9 then
  135. put"0" before char 1 of field id 43
  136. put "00" after last char of field id 43
  137. else
  138. if numChar = 1 and c1 = 1 then
  139. add 12 to c1
  140. put "00" after last char of c1
  141. put c1 into field id 43
  142. else
  143. if numChar = 1 and c1 = 2 then
  144. add 12 to c1
  145. put "00" after last char of c1
  146. put c1 into field id 43
  147. else
  148. if numChar = 1 and c1 = 3 then
  149. add 12 to c1
  150. put "00" after last char of c1
  151. put c1 into field id 43
  152. else
  153. if numChar = 1 and c1 = 4 then
  154. add 12 to c1
  155. put "00" after last char of c1
  156. put c1 into field id 43
  157. else
  158. if numChar = 1 and c1 = 5 then
  159. add 12 to c1
  160. put "00" after last char of c1
  161. put c1 into field id 43
  162. else
  163. if numChar = 1 and c1 = 6 then
  164. add 12 to c1
  165. put "00" after last char of c1
  166. put c1 into field id 43
  167. else
  168. if numChar = 1 and c1 = 7 then
  169. add 12 to c1
  170. put "00" after last char of c1
  171. put c1 into field id 43
  172. else
  173. if numChar = 1 and c1 = 8 then
  174. add 12 to c1
  175. put "00" after last char of c1
  176. put c1 into field id 43
  177.  
  178. else
  179. if numChar = 2 then
  180. put "00" after last char of field id 43
  181.  
  182.  
  183. else
  184. if numChar = 3 and h1 = 9 then
  185. put "0" before first char of field id 43
  186. else
  187. if numChar = 3 and h1 = 1 then
  188. add 12 to h1
  189. put holder after last char of h1
  190. put h1 into field id 43
  191. else
  192. if numChar = 3 and h1 = 2 then
  193. add 12 to h1
  194. put holder after last char of h1
  195. put h1 into field id 43
  196. else
  197. if numChar = 3 and h1 = 3 then
  198. add 12 to h1
  199. put holder after last char of h1
  200. put h1 into field id 43
  201. else
  202. if numChar = 3 and h1 = 4 then
  203. add 12 to h1
  204. put holder after last char of h1
  205. put h1 into field id 43
  206. else
  207. if numChar = 3 and h1 = 5 then
  208. add 12 to h1
  209. put holder after last char of h1
  210. put h1 into field id 43
  211. else
  212. if numChar = 3 and h1 = 6 then
  213. add 12 to h1
  214. put holder after last char of h1
  215. put h1 into field id 43
  216. else
  217. if numChar = 3 and h1 = 7 then
  218. add 12 to h1
  219. put holder after last char of h1
  220. put h1 into field id 43
  221. else
  222. if numChar = 3 and h1 = 8 then
  223. add 12 to h1
  224. put holder after last char of h1
  225. put h1 into field id 43
  226.  
  227. else
  228. if numChar >= 5 then
  229. beep
  230. wait 2
  231. beep
  232. put "Invalid format please try again" into message box
  233. wait 2 secs
  234. hide message box
  235. get the loc of field id 43
  236. click at it
  237. else
  238. if numChar = 4 then
  239. end if
  240. end if
  241. end if
  242. end if
  243. end if
  244. end if
  245. end if
  246. end if
  247. end if
  248. end if
  249. end if
  250. end if
  251. end if
  252. end if
  253. end if
  254. end if
  255. end if
  256. end if
  257. end if
  258. end if
  259. end if
  260. set lockText of field id 43 to true
  261. hide bkgnd field id 51
  262. hide bkgnd field id 50
  263. hide bkgnd field id 53
  264. hide bkgnd button id 54
  265. show bkgnd button id 57
  266. set lockText of field id 2 to true
  267. put return & field id 43 after last char of field id 51
  268. set lockText of field id 43 to true
  269. end closeField
  270.  
  271. on mouseUp
  272. if field id 43 is empty then
  273. set locktext of field id 43 to false
  274. tabkey
  275. tabkey
  276. tabkey
  277. else
  278. if field id 43 is not empty then
  279. set locktext of field id 43 to false
  280. set locktext of field id 2 to true
  281. show field id 50
  282. show field id 51
  283. show field id 53
  284. show bkgnd button id 54
  285. end if
  286. tabkey
  287. tabkey
  288. end if
  289. show bkgnd button "Closer Look"
  290. end mouseUp
  291.  
  292. </script>
  293.     </part>
  294.     <part>
  295.         <id>6</id>
  296.         <type>field</type>
  297.         <visible> <true /> </visible>
  298.         <dontWrap> <false /> </dontWrap>
  299.         <dontSearch> <false /> </dontSearch>
  300.         <sharedText> <false /> </sharedText>
  301.         <fixedLineHeight> <true /> </fixedLineHeight>
  302.         <autoTab> <false /> </autoTab>
  303.         <lockText> <false /> </lockText>
  304.         <rect>
  305.             <left>119</left>
  306.             <top>146</top>
  307.             <right>487</right>
  308.             <bottom>219</bottom>
  309.         </rect>
  310.         <style>scrolling</style>
  311.         <autoSelect> <false /> </autoSelect>
  312.         <showLines> <false /> </showLines>
  313.         <wideMargins> <false /> </wideMargins>
  314.         <multipleLines> <false /> </multipleLines>
  315.         <reservedFamily> 0 </reservedFamily>
  316.         <titleWidth>0</titleWidth>
  317.         <icon>0</icon>
  318.         <textAlign>left</textAlign>
  319.         <font>Geneva</font>
  320.         <textSize>10</textSize>
  321.         <textStyle>plain</textStyle>
  322.         <textHeight>13</textHeight>
  323.         <name>Appointment Details</name>
  324.         <script></script>
  325.     </part>
  326.     <part>
  327.         <id>8</id>
  328.         <type>field</type>
  329.         <visible> <true /> </visible>
  330.         <dontWrap> <false /> </dontWrap>
  331.         <dontSearch> <false /> </dontSearch>
  332.         <sharedText> <false /> </sharedText>
  333.         <fixedLineHeight> <true /> </fixedLineHeight>
  334.         <autoTab> <false /> </autoTab>
  335.         <lockText> <true /> </lockText>
  336.         <rect>
  337.             <left>239</left>
  338.             <top>297</top>
  339.             <right>495</right>
  340.             <bottom>313</bottom>
  341.         </rect>
  342.         <style>transparent</style>
  343.         <autoSelect> <false /> </autoSelect>
  344.         <showLines> <false /> </showLines>
  345.         <wideMargins> <false /> </wideMargins>
  346.         <multipleLines> <false /> </multipleLines>
  347.         <reservedFamily> 0 </reservedFamily>
  348.         <titleWidth>0</titleWidth>
  349.         <icon>0</icon>
  350.         <textAlign>left</textAlign>
  351.         <font>Geneva</font>
  352.         <textSize>10</textSize>
  353.         <textStyle>plain</textStyle>
  354.         <textHeight>13</textHeight>
  355.         <name>Created</name>
  356.         <script></script>
  357.     </part>
  358.     <part>
  359.         <id>14</id>
  360.         <type>button</type>
  361.         <visible> <true /> </visible>
  362.         <reserved5> 0 </reserved5>
  363.         <reserved4> 0 </reserved4>
  364.         <reserved3> 0 </reserved3>
  365.         <reserved2> 0 </reserved2>
  366.         <reserved1> 0 </reserved1>
  367.         <enabled> <true /> </enabled>
  368.         <rect>
  369.             <left>11</left>
  370.             <top>305</top>
  371.             <right>38</right>
  372.             <bottom>330</bottom>
  373.         </rect>
  374.         <style>transparent</style>
  375.         <showName> <false /> </showName>
  376.         <highlight> <false /> </highlight>
  377.         <autoHighlight> <true /> </autoHighlight>
  378.         <sharedHighlight> <true /> </sharedHighlight>
  379.         <family>0</family>
  380.         <titleWidth>0</titleWidth>
  381.         <icon>1014</icon>
  382.         <textAlign>center</textAlign>
  383.         <font>Chicago</font>
  384.         <textSize>12</textSize>
  385.         <textStyle>plain</textStyle>
  386.         <name>Prev</name>
  387.         <script>on mouseUp
  388. hide bkgnd button id 54
  389. hide bkgnd field id 50
  390. hide bkgnd field id 51
  391. hide bkgnd field id 53
  392. go prev card of this bkgnd
  393. end mouseUp</script>
  394.     </part>
  395.     <part>
  396.         <id>15</id>
  397.         <type>button</type>
  398.         <visible> <true /> </visible>
  399.         <reserved5> 0 </reserved5>
  400.         <reserved4> 0 </reserved4>
  401.         <reserved3> 0 </reserved3>
  402.         <reserved2> 0 </reserved2>
  403.         <reserved1> 0 </reserved1>
  404.         <enabled> <true /> </enabled>
  405.         <rect>
  406.             <left>473</left>
  407.             <top>306</top>
  408.             <right>500</right>
  409.             <bottom>331</bottom>
  410.         </rect>
  411.         <style>transparent</style>
  412.         <showName> <false /> </showName>
  413.         <highlight> <false /> </highlight>
  414.         <autoHighlight> <true /> </autoHighlight>
  415.         <sharedHighlight> <true /> </sharedHighlight>
  416.         <family>0</family>
  417.         <titleWidth>0</titleWidth>
  418.         <icon>1013</icon>
  419.         <textAlign>center</textAlign>
  420.         <font>Chicago</font>
  421.         <textSize>12</textSize>
  422.         <textStyle>plain</textStyle>
  423.         <name>Next</name>
  424.         <script>on mouseUp
  425. hide bkgnd button id 54
  426. hide bkgnd field id 50
  427. hide bkgnd field id 51
  428. hide bkgnd field id 53
  429. go next card of this bkgnd
  430. end mouseUp
  431. </script>
  432.     </part>
  433.     <part>
  434.         <id>45</id>
  435.         <type>field</type>
  436.         <visible> <true /> </visible>
  437.         <dontWrap> <false /> </dontWrap>
  438.         <dontSearch> <false /> </dontSearch>
  439.         <sharedText> <false /> </sharedText>
  440.         <fixedLineHeight> <true /> </fixedLineHeight>
  441.         <autoTab> <false /> </autoTab>
  442.         <lockText> <false /> </lockText>
  443.         <rect>
  444.             <left>119</left>
  445.             <top>219</top>
  446.             <right>487</right>
  447.             <bottom>248</bottom>
  448.         </rect>
  449.         <style>rectangle</style>
  450.         <autoSelect> <false /> </autoSelect>
  451.         <showLines> <false /> </showLines>
  452.         <wideMargins> <false /> </wideMargins>
  453.         <multipleLines> <false /> </multipleLines>
  454.         <reservedFamily> 0 </reservedFamily>
  455.         <titleWidth>0</titleWidth>
  456.         <icon>0</icon>
  457.         <textAlign>left</textAlign>
  458.         <font>Geneva</font>
  459.         <textSize>10</textSize>
  460.         <textStyle>plain</textStyle>
  461.         <textHeight>13</textHeight>
  462.         <name>Where</name>
  463.         <script></script>
  464.     </part>
  465.     <part>
  466.         <id>41</id>
  467.         <type>button</type>
  468.         <visible> <true /> </visible>
  469.         <reserved5> 0 </reserved5>
  470.         <reserved4> 0 </reserved4>
  471.         <reserved3> 0 </reserved3>
  472.         <reserved2> 0 </reserved2>
  473.         <reserved1> 0 </reserved1>
  474.         <enabled> <true /> </enabled>
  475.         <rect>
  476.             <left>399</left>
  477.             <top>0</top>
  478.             <right>512</right>
  479.             <bottom>50</bottom>
  480.         </rect>
  481.         <style>transparent</style>
  482.         <showName> <true /> </showName>
  483.         <highlight> <false /> </highlight>
  484.         <autoHighlight> <true /> </autoHighlight>
  485.         <sharedHighlight> <true /> </sharedHighlight>
  486.         <family>0</family>
  487.         <titleWidth>0</titleWidth>
  488.         <icon>22308</icon>
  489.         <textAlign>center</textAlign>
  490.         <font>Chicago</font>
  491.         <textSize>12</textSize>
  492.         <textStyle>plain</textStyle>
  493.         <name>Go to Schedule</name>
  494.         <script>on mouseUp
  495. global myName,myDate
  496. hide menubar
  497. get field id 47
  498. put it into myName
  499. get field id 2  --"Date"
  500. put it into myDate
  501. visual effect iris close slow
  502. go card id 3049
  503. put myName into field id 26
  504. put myDate into field "Date"
  505. theSchedule schedule
  506. end mouseUp
  507.  
  508. </script>
  509.     </part>
  510.     <part>
  511.         <id>46</id>
  512.         <type>field</type>
  513.         <visible> <true /> </visible>
  514.         <dontWrap> <false /> </dontWrap>
  515.         <dontSearch> <false /> </dontSearch>
  516.         <sharedText> <false /> </sharedText>
  517.         <fixedLineHeight> <true /> </fixedLineHeight>
  518.         <autoTab> <false /> </autoTab>
  519.         <lockText> <false /> </lockText>
  520.         <rect>
  521.             <left>119</left>
  522.             <top>244</top>
  523.             <right>488</right>
  524.             <bottom>270</bottom>
  525.         </rect>
  526.         <style>rectangle</style>
  527.         <autoSelect> <false /> </autoSelect>
  528.         <showLines> <false /> </showLines>
  529.         <wideMargins> <false /> </wideMargins>
  530.         <multipleLines> <false /> </multipleLines>
  531.         <reservedFamily> 0 </reservedFamily>
  532.         <titleWidth>0</titleWidth>
  533.         <icon>0</icon>
  534.         <textAlign>left</textAlign>
  535.         <font>Geneva</font>
  536.         <textSize>10</textSize>
  537.         <textStyle>plain</textStyle>
  538.         <textHeight>13</textHeight>
  539.         <name>Why</name>
  540.         <script></script>
  541.     </part>
  542.     <part>
  543.         <id>47</id>
  544.         <type>field</type>
  545.         <visible> <true /> </visible>
  546.         <dontWrap> <false /> </dontWrap>
  547.         <dontSearch> <false /> </dontSearch>
  548.         <sharedText> <false /> </sharedText>
  549.         <fixedLineHeight> <true /> </fixedLineHeight>
  550.         <autoTab> <false /> </autoTab>
  551.         <lockText> <false /> </lockText>
  552.         <rect>
  553.             <left>144</left>
  554.             <top>275</top>
  555.             <right>337</right>
  556.             <bottom>299</bottom>
  557.         </rect>
  558.         <style>transparent</style>
  559.         <autoSelect> <false /> </autoSelect>
  560.         <showLines> <false /> </showLines>
  561.         <wideMargins> <false /> </wideMargins>
  562.         <multipleLines> <false /> </multipleLines>
  563.         <reservedFamily> 0 </reservedFamily>
  564.         <titleWidth>0</titleWidth>
  565.         <icon>0</icon>
  566.         <textAlign>left</textAlign>
  567.         <font></font>
  568.         <textSize>14</textSize>
  569.         <textStyle>plain</textStyle>
  570.         <textHeight>18</textHeight>
  571.         <name>My Name</name>
  572.         <script></script>
  573.     </part>
  574.     <part>
  575.         <id>9</id>
  576.         <type>field</type>
  577.         <visible> <true /> </visible>
  578.         <dontWrap> <false /> </dontWrap>
  579.         <dontSearch> <false /> </dontSearch>
  580.         <sharedText> <false /> </sharedText>
  581.         <fixedLineHeight> <true /> </fixedLineHeight>
  582.         <autoTab> <false /> </autoTab>
  583.         <lockText> <true /> </lockText>
  584.         <rect>
  585.             <left>239</left>
  586.             <top>313</top>
  587.             <right>475</right>
  588.             <bottom>328</bottom>
  589.         </rect>
  590.         <style>transparent</style>
  591.         <autoSelect> <false /> </autoSelect>
  592.         <showLines> <false /> </showLines>
  593.         <wideMargins> <false /> </wideMargins>
  594.         <multipleLines> <false /> </multipleLines>
  595.         <reservedFamily> 0 </reservedFamily>
  596.         <titleWidth>0</titleWidth>
  597.         <icon>0</icon>
  598.         <textAlign>left</textAlign>
  599.         <font>Geneva</font>
  600.         <textSize>10</textSize>
  601.         <textStyle>plain</textStyle>
  602.         <textHeight>13</textHeight>
  603.         <name>Completed</name>
  604.         <script>on mouseUp
  605. if field id 9 is empty then
  606. put the long date && "‚Äî" & the time into field id 9
  607. exit mouseUp
  608. else
  609. if field id 9 is not empty then
  610. set lockText of field id 9 to false
  611. get the loc of field id 9
  612. click at it
  613. end if
  614. end if
  615. end mouseUp
  616. </script>
  617.     </part>
  618.     <part>
  619.         <id>48</id>
  620.         <type>button</type>
  621.         <visible> <true /> </visible>
  622.         <reserved5> 0 </reserved5>
  623.         <reserved4> 0 </reserved4>
  624.         <reserved3> 0 </reserved3>
  625.         <reserved2> 0 </reserved2>
  626.         <reserved1> 0 </reserved1>
  627.         <enabled> <true /> </enabled>
  628.         <rect>
  629.             <left>339</left>
  630.             <top>276</top>
  631.             <right>498</right>
  632.             <bottom>297</bottom>
  633.         </rect>
  634.         <style>roundrect</style>
  635.         <showName> <true /> </showName>
  636.         <highlight> <false /> </highlight>
  637.         <autoHighlight> <true /> </autoHighlight>
  638.         <sharedHighlight> <true /> </sharedHighlight>
  639.         <family>0</family>
  640.         <titleWidth>0</titleWidth>
  641.         <icon>0</icon>
  642.         <textAlign>center</textAlign>
  643.         <font>Chicago</font>
  644.         <textSize>12</textSize>
  645.         <textStyle>plain</textStyle>
  646.         <name>New Appointment Card</name>
  647.         <script>on mouseUp
  648. go last card of this bkgnd
  649. show bkgnd button id 57  --"closer look"
  650. doMenu "New Card"
  651. end mouseUp
  652. </script>
  653.     </part>
  654.     <part>
  655.         <id>49</id>
  656.         <type>button</type>
  657.         <visible> <true /> </visible>
  658.         <reserved5> 0 </reserved5>
  659.         <reserved4> 0 </reserved4>
  660.         <reserved3> 0 </reserved3>
  661.         <reserved2> 0 </reserved2>
  662.         <reserved1> 0 </reserved1>
  663.         <enabled> <true /> </enabled>
  664.         <rect>
  665.             <left>271</left>
  666.             <top>0</top>
  667.             <right>314</right>
  668.             <bottom>38</bottom>
  669.         </rect>
  670.         <style>transparent</style>
  671.         <showName> <false /> </showName>
  672.         <highlight> <false /> </highlight>
  673.         <autoHighlight> <true /> </autoHighlight>
  674.         <sharedHighlight> <true /> </sharedHighlight>
  675.         <family>0</family>
  676.         <titleWidth>0</titleWidth>
  677.         <icon>21700</icon>
  678.         <textAlign>center</textAlign>
  679.         <font>Chicago</font>
  680.         <textSize>12</textSize>
  681.         <textStyle>plain</textStyle>
  682.         <name>Home</name>
  683.         <script>on mouseUp
  684. show menubar
  685. visual effect iris close
  686. go Home
  687. play harpsicord tempo 200 c5 d5 e5 f#5 g5
  688. end mouseUp
  689. </script>
  690.     </part>
  691.     <part>
  692.         <id>50</id>
  693.         <type>field</type>
  694.         <visible> <false /> </visible>
  695.         <dontWrap> <false /> </dontWrap>
  696.         <dontSearch> <false /> </dontSearch>
  697.         <sharedText> <false /> </sharedText>
  698.         <fixedLineHeight> <true /> </fixedLineHeight>
  699.         <autoTab> <false /> </autoTab>
  700.         <lockText> <true /> </lockText>
  701.         <rect>
  702.             <left>16</left>
  703.             <top>117</top>
  704.             <right>497</right>
  705.             <bottom>270</bottom>
  706.         </rect>
  707.         <style>rectangle</style>
  708.         <autoSelect> <false /> </autoSelect>
  709.         <showLines> <false /> </showLines>
  710.         <wideMargins> <false /> </wideMargins>
  711.         <multipleLines> <false /> </multipleLines>
  712.         <reservedFamily> 0 </reservedFamily>
  713.         <titleWidth>0</titleWidth>
  714.         <icon>0</icon>
  715.         <textAlign>center</textAlign>
  716.         <font></font>
  717.         <textSize>18</textSize>
  718.         <textStyle>plain</textStyle>
  719.         <textHeight>24</textHeight>
  720.         <name>Schedueled Appt Times</name>
  721.         <script></script>
  722.     </part>
  723.     <part>
  724.         <id>51</id>
  725.         <type>field</type>
  726.         <visible> <false /> </visible>
  727.         <dontWrap> <false /> </dontWrap>
  728.         <dontSearch> <false /> </dontSearch>
  729.         <sharedText> <false /> </sharedText>
  730.         <fixedLineHeight> <true /> </fixedLineHeight>
  731.         <autoTab> <false /> </autoTab>
  732.         <lockText> <true /> </lockText>
  733.         <rect>
  734.             <left>423</left>
  735.             <top>123</top>
  736.             <right>495</right>
  737.             <bottom>268</bottom>
  738.         </rect>
  739.         <style>scrolling</style>
  740.         <autoSelect> <false /> </autoSelect>
  741.         <showLines> <false /> </showLines>
  742.         <wideMargins> <false /> </wideMargins>
  743.         <multipleLines> <false /> </multipleLines>
  744.         <reservedFamily> 0 </reservedFamily>
  745.         <titleWidth>0</titleWidth>
  746.         <icon>0</icon>
  747.         <textAlign>center</textAlign>
  748.         <font>Chicago</font>
  749.         <textSize>12</textSize>
  750.         <textStyle>plain</textStyle>
  751.         <textHeight>16</textHeight>
  752.         <name>ShowApptTimes</name>
  753.         <script>on mouseUp
  754. global lineNumber,thisLine,invisLines
  755. put the scroll of bkgnd field id 51/the textHeight¬¨
  756. of bkgnd field id 51 into invisLines
  757. put trunc(invisLines) into temp1
  758. put temp1 into invisLines
  759. put (item 2 of the clickloc-105) div 16 into lineNumber
  760. if bkgnd field id 60 is empty then
  761. exit mouseUp
  762. else
  763. if bkgnd field id 60 is not empty then
  764. if line lineNumber of field id 51 is not empty then
  765. put lineNumber into thisLine
  766. add invisLines to thisLine
  767. go line thisLine of field "MoreLinks"
  768. send mouseUp to bkgnd button id 63  --"Find Appt Time"
  769. else
  770. if line lineNumber of field id 51 is empty then
  771. beep
  772. put "You clicked on an empty line. Please try again." into msg
  773. wait 1 seconds
  774. hide msg box
  775. end if
  776. end if
  777. end if
  778. end if
  779. end mouseUp
  780.  
  781.  
  782. </script>
  783.     </part>
  784.     <part>
  785.         <id>53</id>
  786.         <type>field</type>
  787.         <visible> <false /> </visible>
  788.         <dontWrap> <false /> </dontWrap>
  789.         <dontSearch> <false /> </dontSearch>
  790.         <sharedText> <false /> </sharedText>
  791.         <fixedLineHeight> <true /> </fixedLineHeight>
  792.         <autoTab> <false /> </autoTab>
  793.         <lockText> <true /> </lockText>
  794.         <rect>
  795.             <left>72</left>
  796.             <top>171</top>
  797.             <right>401</right>
  798.             <bottom>189</bottom>
  799.         </rect>
  800.         <style>transparent</style>
  801.         <autoSelect> <false /> </autoSelect>
  802.         <showLines> <false /> </showLines>
  803.         <wideMargins> <false /> </wideMargins>
  804.         <multipleLines> <false /> </multipleLines>
  805.         <reservedFamily> 0 </reservedFamily>
  806.         <titleWidth>0</titleWidth>
  807.         <icon>0</icon>
  808.         <textAlign>right</textAlign>
  809.         <font>Chicago</font>
  810.         <textSize>12</textSize>
  811.         <textStyle>plain</textStyle>
  812.         <textHeight>16</textHeight>
  813.         <name>NumberScheduledAppts</name>
  814.         <script></script>
  815.     </part>
  816.     <part>
  817.         <id>54</id>
  818.         <type>button</type>
  819.         <visible> <false /> </visible>
  820.         <reserved5> 0 </reserved5>
  821.         <reserved4> 0 </reserved4>
  822.         <reserved3> 0 </reserved3>
  823.         <reserved2> 0 </reserved2>
  824.         <reserved1> 0 </reserved1>
  825.         <enabled> <true /> </enabled>
  826.         <rect>
  827.             <left>112</left>
  828.             <top>232</top>
  829.             <right>384</right>
  830.             <bottom>264</bottom>
  831.         </rect>
  832.         <style>roundrect</style>
  833.         <showName> <true /> </showName>
  834.         <highlight> <false /> </highlight>
  835.         <autoHighlight> <true /> </autoHighlight>
  836.         <sharedHighlight> <true /> </sharedHighlight>
  837.         <family>0</family>
  838.         <titleWidth>0</titleWidth>
  839.         <icon>0</icon>
  840.         <textAlign>center</textAlign>
  841.         <font>Chicago</font>
  842.         <textSize>12</textSize>
  843.         <textStyle>plain</textStyle>
  844.         <name>Click Here to see Appointment Details</name>
  845.         <script>on mouseUp
  846. visual effect zoom in
  847. hide bkgnd field id 50
  848. hide bkgnd field id 51
  849. hide bkgnd field id 53
  850. hide bkgnd button id 54  -- "Click Here to see Appointment Details"
  851. hide bkgnd button id 63  --"FindApptTime"
  852. show bkgnd button id 57  --"Closer Look"
  853. tabkey
  854. tabkey
  855. tabkey
  856. end mouseUp
  857.  
  858. </script>
  859.     </part>
  860.     <part>
  861.         <id>57</id>
  862.         <type>button</type>
  863.         <visible> <true /> </visible>
  864.         <reserved5> 0 </reserved5>
  865.         <reserved4> 0 </reserved4>
  866.         <reserved3> 0 </reserved3>
  867.         <reserved2> 0 </reserved2>
  868.         <reserved1> 0 </reserved1>
  869.         <enabled> <true /> </enabled>
  870.         <rect>
  871.             <left>10</left>
  872.             <top>170</top>
  873.             <right>72</right>
  874.             <bottom>222</bottom>
  875.         </rect>
  876.         <style>transparent</style>
  877.         <showName> <true /> </showName>
  878.         <highlight> <false /> </highlight>
  879.         <autoHighlight> <true /> </autoHighlight>
  880.         <sharedHighlight> <true /> </sharedHighlight>
  881.         <family>0</family>
  882.         <titleWidth>0</titleWidth>
  883.         <icon>8538</icon>
  884.         <textAlign>center</textAlign>
  885.         <font>Chicago</font>
  886.         <textSize>12</textSize>
  887.         <textStyle>plain</textStyle>
  888.         <name>Closer Look</name>
  889.         <script>on mouseUp
  890. if visible of bkgnd field id 50 is false then
  891. show bkgnd field id 50
  892. show bkgnd field id 51
  893. show bkgnd field id 53
  894. show bkgnd button id 54
  895. hide bkgnd button id 57  --"Closer Look"
  896. send mouseUp to bkgnd button id 63
  897. end if
  898. end mouseUp</script>
  899.     </part>
  900.     <part>
  901.         <id>58</id>
  902.         <type>button</type>
  903.         <visible> <true /> </visible>
  904.         <reserved5> 0 </reserved5>
  905.         <reserved4> 0 </reserved4>
  906.         <reserved3> 0 </reserved3>
  907.         <reserved2> 0 </reserved2>
  908.         <reserved1> 0 </reserved1>
  909.         <enabled> <true /> </enabled>
  910.         <rect>
  911.             <left>189</left>
  912.             <top>0</top>
  913.             <right>252</right>
  914.             <bottom>43</bottom>
  915.         </rect>
  916.         <style>transparent</style>
  917.         <showName> <true /> </showName>
  918.         <highlight> <false /> </highlight>
  919.         <autoHighlight> <true /> </autoHighlight>
  920.         <sharedHighlight> <true /> </sharedHighlight>
  921.         <family>0</family>
  922.         <titleWidth>0</titleWidth>
  923.         <icon>20186</icon>
  924.         <textAlign>center</textAlign>
  925.         <font>Chicago</font>
  926.         <textSize>12</textSize>
  927.         <textStyle>plain</textStyle>
  928.         <name>Sort</name>
  929.         <script>on mouseUp
  930. set cursor to 4
  931. set lockScreen to true
  932. push card
  933. repeat with s = 2 to the number of cards
  934. sort by field id 43
  935. sort by field id 2
  936. end repeat
  937. pop card
  938. set lockScreen to true
  939. beep
  940. send mouseup to bkgnd button id 63  -- "Find Appt Time"
  941. end mouseUp
  942. </script>
  943.     </part>
  944.     <part>
  945.         <id>60</id>
  946.         <type>field</type>
  947.         <visible> <false /> </visible>
  948.         <dontWrap> <false /> </dontWrap>
  949.         <dontSearch> <false /> </dontSearch>
  950.         <sharedText> <false /> </sharedText>
  951.         <fixedLineHeight> <true /> </fixedLineHeight>
  952.         <autoTab> <false /> </autoTab>
  953.         <lockText> <false /> </lockText>
  954.         <rect>
  955.             <left>246</left>
  956.             <top>172</top>
  957.             <right>390</right>
  958.             <bottom>270</bottom>
  959.         </rect>
  960.         <style>rectangle</style>
  961.         <autoSelect> <false /> </autoSelect>
  962.         <showLines> <false /> </showLines>
  963.         <wideMargins> <false /> </wideMargins>
  964.         <multipleLines> <false /> </multipleLines>
  965.         <reservedFamily> 0 </reservedFamily>
  966.         <titleWidth>0</titleWidth>
  967.         <icon>0</icon>
  968.         <textAlign>left</textAlign>
  969.         <font>Chicago</font>
  970.         <textSize>12</textSize>
  971.         <textStyle>plain</textStyle>
  972.         <textHeight>16</textHeight>
  973.         <name>MoreLinks</name>
  974.         <script></script>
  975.     </part>
  976.     <part>
  977.         <id>63</id>
  978.         <type>button</type>
  979.         <visible> <false /> </visible>
  980.         <reserved5> 0 </reserved5>
  981.         <reserved4> 0 </reserved4>
  982.         <reserved3> 0 </reserved3>
  983.         <reserved2> 0 </reserved2>
  984.         <reserved1> 0 </reserved1>
  985.         <enabled> <true /> </enabled>
  986.         <rect>
  987.             <left>381</left>
  988.             <top>229</top>
  989.             <right>490</right>
  990.             <bottom>270</bottom>
  991.         </rect>
  992.         <style>roundrect</style>
  993.         <showName> <false /> </showName>
  994.         <highlight> <false /> </highlight>
  995.         <autoHighlight> <false /> </autoHighlight>
  996.         <sharedHighlight> <true /> </sharedHighlight>
  997.         <family>0</family>
  998.         <titleWidth>0</titleWidth>
  999.         <icon>0</icon>
  1000.         <textAlign>center</textAlign>
  1001.         <font>Chicago</font>
  1002.         <textSize>12</textSize>
  1003.         <textStyle>plain</textStyle>
  1004.         <name>Find Appt Time</name>
  1005.         <script>on mouseUp
  1006. apptTimes thisDay
  1007. end mouseUp
  1008. </script>
  1009.     </part>
  1010.     <part>
  1011.         <id>66</id>
  1012.         <type>field</type>
  1013.         <visible> <false /> </visible>
  1014.         <dontWrap> <false /> </dontWrap>
  1015.         <dontSearch> <false /> </dontSearch>
  1016.         <sharedText> <false /> </sharedText>
  1017.         <fixedLineHeight> <true /> </fixedLineHeight>
  1018.         <autoTab> <false /> </autoTab>
  1019.         <lockText> <true /> </lockText>
  1020.         <rect>
  1021.             <left>11</left>
  1022.             <top>62</top>
  1023.             <right>504</right>
  1024.             <bottom>339</bottom>
  1025.         </rect>
  1026.         <style>scrolling</style>
  1027.         <autoSelect> <false /> </autoSelect>
  1028.         <showLines> <false /> </showLines>
  1029.         <wideMargins> <false /> </wideMargins>
  1030.         <multipleLines> <false /> </multipleLines>
  1031.         <reservedFamily> 0 </reservedFamily>
  1032.         <titleWidth>0</titleWidth>
  1033.         <icon>0</icon>
  1034.         <textAlign>left</textAlign>
  1035.         <font>Geneva</font>
  1036.         <textSize>12</textSize>
  1037.         <textStyle>plain</textStyle>
  1038.         <textHeight>16</textHeight>
  1039.         <name>Information</name>
  1040.         <script>on mouseUp
  1041. hide bkgnd field id 66
  1042. end mouseUp</script>
  1043.     </part>
  1044.     <part>
  1045.         <id>67</id>
  1046.         <type>button</type>
  1047.         <visible> <true /> </visible>
  1048.         <reserved5> 0 </reserved5>
  1049.         <reserved4> 0 </reserved4>
  1050.         <reserved3> 0 </reserved3>
  1051.         <reserved2> 0 </reserved2>
  1052.         <reserved1> 0 </reserved1>
  1053.         <enabled> <true /> </enabled>
  1054.         <rect>
  1055.             <left>320</left>
  1056.             <top>1</top>
  1057.             <right>358</right>
  1058.             <bottom>42</bottom>
  1059.         </rect>
  1060.         <style>transparent</style>
  1061.         <showName> <true /> </showName>
  1062.         <highlight> <false /> </highlight>
  1063.         <autoHighlight> <true /> </autoHighlight>
  1064.         <sharedHighlight> <true /> </sharedHighlight>
  1065.         <family>0</family>
  1066.         <titleWidth>0</titleWidth>
  1067.         <icon>26635</icon>
  1068.         <textAlign>center</textAlign>
  1069.         <font>Chicago</font>
  1070.         <textSize>12</textSize>
  1071.         <textStyle>plain</textStyle>
  1072.         <name>Help</name>
  1073.         <script>on mouseUp
  1074. show field id 66  --"Information"
  1075. end mouseUp
  1076. </script>
  1077.     </part>
  1078.     <part>
  1079.         <id>68</id>
  1080.         <type>field</type>
  1081.         <visible> <false /> </visible>
  1082.         <dontWrap> <false /> </dontWrap>
  1083.         <dontSearch> <false /> </dontSearch>
  1084.         <sharedText> <false /> </sharedText>
  1085.         <fixedLineHeight> <true /> </fixedLineHeight>
  1086.         <autoTab> <false /> </autoTab>
  1087.         <lockText> <false /> </lockText>
  1088.         <rect>
  1089.             <left>26</left>
  1090.             <top>182</top>
  1091.             <right>470</right>
  1092.             <bottom>270</bottom>
  1093.         </rect>
  1094.         <style>scrolling</style>
  1095.         <autoSelect> <false /> </autoSelect>
  1096.         <showLines> <false /> </showLines>
  1097.         <wideMargins> <false /> </wideMargins>
  1098.         <multipleLines> <false /> </multipleLines>
  1099.         <reservedFamily> 0 </reservedFamily>
  1100.         <titleWidth>0</titleWidth>
  1101.         <icon>0</icon>
  1102.         <textAlign>left</textAlign>
  1103.         <font>Geneva</font>
  1104.         <textSize>9</textSize>
  1105.         <textStyle>plain</textStyle>
  1106.         <textHeight>12</textHeight>
  1107.         <name></name>
  1108.         <script>The Scripts for Background #2 ‚Äî "Appointment Card"
  1109. AppointmentMaster v 1.1 ¬©1988
  1110. by James C. Casebier,Jr.
  1111.  
  1112. bkgnd "AppointmentCard"
  1113. on newCard
  1114. global whosThere
  1115. put the long date && the time into field "Created"  --date stamp
  1116. ask "What is your name, Please?"  with whosThere
  1117. put it into field id 47  -- field  "My Name"
  1118. put field id 47 into myName
  1119. set locktext of field id 1 to false
  1120. set locktext of field id 2 to false
  1121. set locktext of field id 43 to false
  1122. hide field id 50
  1123. hide field id 51
  1124. hide field id 53
  1125. hide bkgnd button id 54
  1126. hide bkgnd button id 63
  1127. show bkgnd button id 57  --"Closer Look"
  1128. tabkey
  1129. end newCard
  1130.  
  1131. on openCard
  1132. set lockText of background field id 9 to true
  1133. end openCard
  1134.  
  1135. on closeCard
  1136. global whosThere
  1137. put field id 47 into whosThere
  1138. pass closeCard
  1139. end closeCard
  1140.  
  1141.  
  1142. on apptTimes thisDay
  1143. set cursor to 4
  1144. put field id 47 into myName
  1145. put empty into bkgnd field id 50
  1146. put empty into bkgnd field id 51
  1147. put empty into bkgnd field id 53
  1148. put empty into bkgnd field "MoreLinks"
  1149. show field id 50
  1150. show field id 51
  1151. show field id 53
  1152. show bkgnd button id 54
  1153. put zero into apptCount
  1154. put 1 into lineNumber
  1155. put "Scheduled Appointment Times ======>"¬¨
  1156. into line 1 of bkgnd field id 50
  1157. repeat with x = 1 to the number of cards
  1158. get (field id 2 of card x)  --field "Date"
  1159. put it into thisDay
  1160. if thisDay is empty then next repeat
  1161. get (field id 43 of card x)
  1162. put it into thisTime
  1163. if thisDay = bkgnd field id 2 ¬¨
  1164. and (field id 47 of card x) = myName then
  1165. if thisTime is not empty then
  1166. put (field id 43 of card x) into line lineNumber of field id 51
  1167. Put the id of card x into line lineNumber of field "MoreLinks"
  1168. add 1 to lineNumber
  1169. add 1 to apptCount
  1170. else
  1171. if thisTime is empty then next repeat
  1172. end if
  1173. end if
  1174. end repeat
  1175. if apptCount = 0 then
  1176. put "You have"&& "NO" &&"Scheduled Appointments for Today."¬¨
  1177. into field id 53
  1178. else
  1179. if apptCount = 1 then
  1180. put "You have"&& apptCount&& "Scheduled Appointment for Today."¬¨
  1181. into field id 53
  1182. else
  1183. if apptCount ‚â• 2 then
  1184. put "You have"&& apptCount&& "Scheduled Appointments for Today."¬¨
  1185. into field id 53
  1186. end if
  1187. end if
  1188. end if
  1189. get field id 43
  1190. put it into todaysApptTime  --a local variable
  1191. find todaysApptTime in field id 51
  1192. beep
  1193. end apptTimes
  1194.  
  1195. card "FirstCardOfApptCards"
  1196. --No scripts
  1197.  
  1198.  
  1199.  
  1200. bkgnd field "ClientName"
  1201. --No scripts
  1202.  
  1203.  
  1204. bkgnd field "Date"
  1205. on closeField
  1206. convert field id 2 to long date
  1207. show field id 50
  1208. show field id 51
  1209. show field id 53
  1210. show bkgnd button id 54
  1211. hide bkgnd button id 57
  1212. apptTimes thisDay
  1213. end closeField
  1214.  
  1215. on mouseUp
  1216. set lockText of field id 2 to false
  1217. set lockText of field id 43 to true
  1218. put field id 47 into myName  --field id 47 is field "My Name"
  1219. apptTimes thisDay
  1220. tabkey
  1221. tabkey
  1222. end mouseUp
  1223.  
  1224.  
  1225. bkgnd field "Time"
  1226. on closeField
  1227. set cursor to 4
  1228. put field id 43 into holder
  1229. put field id 43 into converter
  1230. put char 1 of holder into h1
  1231. put char 1 of converter into c1
  1232. put empty into char 1 of holder
  1233. put empty into char 1 of converter
  1234. get the number of chars of field id 43
  1235. put it into numChar
  1236. if numChar = 1 and c1 = 9 then
  1237. put"0" before char 1 of field id 43
  1238. put "00" after last char of field id 43
  1239. else
  1240. if numChar = 1 and c1 = 1 then
  1241. add 12 to c1
  1242. put "00" after last char of c1
  1243. put c1 into field id 43
  1244. else
  1245. if numChar = 1 and c1 = 2 then
  1246. add 12 to c1
  1247. put "00" after last char of c1
  1248. put c1 into field id 43
  1249. else
  1250. if numChar = 1 and c1 = 3 then
  1251. add 12 to c1
  1252. put "00" after last char of c1
  1253. put c1 into field id 43
  1254. else
  1255. if numChar = 1 and c1 = 4 then
  1256. add 12 to c1
  1257. put "00" after last char of c1
  1258. put c1 into field id 43
  1259. else
  1260. if numChar = 1 and c1 = 5 then
  1261. add 12 to c1
  1262. put "00" after last char of c1
  1263. put c1 into field id 43
  1264. else
  1265. if numChar = 1 and c1 = 6 then
  1266. add 12 to c1
  1267. put "00" after last char of c1
  1268. put c1 into field id 43
  1269. else
  1270. if numChar = 1 and c1 = 7 then
  1271. add 12 to c1
  1272. put "00" after last char of c1
  1273. put c1 into field id 43
  1274. else
  1275. if numChar = 1 and c1 = 8 then
  1276. add 12 to c1
  1277. put "00" after last char of c1
  1278. put c1 into field id 43
  1279. else
  1280. if numChar = 2 then
  1281. put "00" after last char of field id 43
  1282.  
  1283.  
  1284. else
  1285. if numChar = 3 and h1 = 9 then
  1286. put "0" before first char of field id 43
  1287. else
  1288. if numChar = 3 and h1 = 1 then
  1289. add 12 to h1
  1290. put holder after last char of h1
  1291. put h1 into field id 43
  1292. else
  1293. if numChar = 3 and h1 = 2 then
  1294. add 12 to h1
  1295. put holder after last char of h1
  1296. put h1 into field id 43
  1297. else
  1298. if numChar = 3 and h1 = 3 then
  1299. add 12 to h1
  1300. put holder after last char of h1
  1301. put h1 into field id 43
  1302. else
  1303. if numChar = 3 and h1 = 4 then
  1304. add 12 to h1
  1305. put holder after last char of h1
  1306. put h1 into field id 43
  1307. else
  1308. if numChar = 3 and h1 = 5 then
  1309. add 12 to h1
  1310. put holder after last char of h1
  1311. put h1 into field id 43
  1312. else
  1313. if numChar = 3 and h1 = 6 then
  1314. add 12 to h1
  1315. put holder after last char of h1
  1316. put h1 into field id 43
  1317. else
  1318. if numChar = 3 and h1 = 7 then
  1319. add 12 to h1
  1320. put holder after last char of h1
  1321. put h1 into field id 43
  1322. else
  1323. if numChar = 3 and h1 = 8 then
  1324. add 12 to h1
  1325. put holder after last char of h1
  1326. put h1 into field id 43
  1327.  
  1328. else
  1329. if numChar >= 5 then
  1330. beep
  1331. wait 2
  1332. beep
  1333. put "Invalid format please try again" into message box
  1334. wait 2 secs
  1335. hide message box
  1336. get the loc of field id 43
  1337. click at it
  1338. else
  1339. if numChar = 4 then
  1340. end if
  1341. end if
  1342. end if
  1343. end if
  1344. end if
  1345. end if
  1346. end if
  1347. end if
  1348. end if
  1349. end if
  1350. end if
  1351. end if
  1352. end if
  1353. end if
  1354. end if
  1355. end if
  1356. end if
  1357. end if
  1358. end if
  1359. end if
  1360. end if
  1361. set lockText of field id 43 to true
  1362. hide bkgnd field id 51
  1363. hide bkgnd field id 50
  1364. hide bkgnd field id 53
  1365. hide bkgnd button id 54
  1366. show bkgnd button id 57
  1367. set lockText of field id 2 to true
  1368. put return & field id 43 after last char of field id 51
  1369. set lockText of field id 43 to true
  1370. end closeField
  1371.  
  1372. on mouseUp
  1373. if field id 43 is empty then
  1374. set locktext of field id 43 to false
  1375. tabkey
  1376. tabkey
  1377. tabkey
  1378. else
  1379. if field id 43 is not empty then
  1380. set locktext of field id 43 to false
  1381. set locktext of field id 2 to true
  1382. show field id 50
  1383. show field id 51
  1384. show field id 53
  1385. show bkgnd button id 54
  1386. end if
  1387. tabkey
  1388. tabkey
  1389. end if
  1390. show bkgnd button "Closer Look"
  1391. end mouseUp
  1392.  
  1393.  
  1394.  
  1395. bkgnd field "Appointment Details"
  1396. --No scripts
  1397.  
  1398. bkgnd field "Created"
  1399. --No scripts
  1400.  
  1401. bkgnd field "Where"
  1402. --No scripts
  1403.  
  1404. bkgnd field "Why"
  1405. --No scripts
  1406.  
  1407. bkgnd field "My Name"
  1408. --No scripts
  1409.  
  1410. bkgnd field "Completed"
  1411. on mouseUp
  1412. if field id 9 is empty then
  1413. put the long date && "‚Äî" & the time into field id 9
  1414. exit mouseUp
  1415. else
  1416. if field id 9 is not empty then
  1417. set lockText of field id 9 to false
  1418. get the loc of field id 9
  1419. click at it
  1420. end if
  1421. end if
  1422. end mouseUp
  1423.  
  1424.  
  1425. bkgnd field "Schedueled Appt Times"
  1426. --No scripts
  1427.  
  1428. bkgnd field "ShowApptTimes"
  1429. on mouseUp
  1430. global lineNumber,thisLine,invisLines
  1431. put the scroll of bkgnd field id 51/the textHeight¬¨
  1432. of bkgnd field id 51 into invisLines
  1433. put trunc(invisLines) into temp1
  1434. put temp1 into invisLines
  1435. put (item 2 of the clickloc-105) div 16 into lineNumber
  1436. if bkgnd field id 60 is empty then
  1437. exit mouseUp
  1438. else
  1439. if bkgnd field id 60 is not empty then
  1440. if line lineNumber of field id 51 is not empty then
  1441. put lineNumber into thisLine
  1442. add invisLines to thisLine
  1443. go line thisLine of field "MoreLinks"
  1444. send mouseUp to bkgnd button id 63  --"Find Appt Time"
  1445. else
  1446. if line lineNumber of field id 51 is empty then
  1447. beep
  1448. put "You clicked on an empty line. Please try again." into msg
  1449. wait 1 seconds
  1450. hide msg box
  1451. end if
  1452. end if
  1453. end if
  1454. end if
  1455. end mouseUp
  1456.  
  1457.  
  1458.  
  1459.  
  1460. bkgnd field "NumberScheduledAppts"
  1461. --No scripts
  1462.  
  1463. bkgnd field "MoreLinks"
  1464. --No scripts
  1465.  
  1466. bkgnd field "Help "
  1467. on mouseUp
  1468. hide bkgnd field id 66  --field "Help"
  1469. end mouseUp
  1470.  
  1471. bkgnd button "Prev"
  1472. on mouseUp
  1473. if visible of bkgnd button id 54 is true then
  1474. hide bkgnd field id 50
  1475. hide bkgnd field id 51
  1476. hide bkgnd field id 53
  1477. hide bkgnd button id 54  -- "Click Here to see Appointment Details"
  1478. hide bkgnd button id 63  --"FindApptTime"
  1479. show bkgnd button id 57  --"Closer Look
  1480. visual effect wipe left
  1481. go prev card of this bkgnd
  1482. else
  1483. if visible of bkgnd button id 54 is false then
  1484. visual effect wipe left
  1485. go prev card of this bkgnd
  1486. end if
  1487. end if
  1488. end mouseUp
  1489.  
  1490. bkgnd button "Next"
  1491. on mouseUp
  1492. if visible of bkgnd button id 54 is true then
  1493. hide bkgnd field id 50
  1494. hide bkgnd field id 51
  1495. hide bkgnd field id 53
  1496. hide bkgnd button id 54  -- "Click Here to see Appointment Details"
  1497. hide bkgnd button id 63  --"FindApptTime"
  1498. show bkgnd button id 57  --"Closer Look
  1499. visual effect wipe left
  1500. go next card of this bkgnd
  1501. else
  1502. if visible of bkgnd button id 54 is false then
  1503. visual effect wipe left
  1504. go next card of this bkgnd
  1505. end if
  1506. end if
  1507. end mouseUp
  1508.  
  1509.  
  1510. bkgnd button "Go to Schedule"
  1511. on mouseUp
  1512. global myName,myDate
  1513. hide menubar
  1514. get field id 47
  1515. put it into myName
  1516. get field id 2  --"Date"
  1517. put it into myDate
  1518. visual effect iris close slow
  1519. go card id 3049
  1520. put myName into field id 26
  1521. put myDate into field "Date"
  1522. theSchedule schedule
  1523. end mouseUp
  1524.  
  1525.  
  1526.  
  1527. bkgnd button "New Appointment Card"
  1528. on mouseUp
  1529. go last card of this bkgnd
  1530. show bkgnd button id 57  --"closer look"
  1531. doMenu "New Card"
  1532. end mouseUp
  1533.  
  1534.  
  1535. bkgnd button "Home"
  1536. on mouseUp
  1537. show menubar
  1538. visual effect iris close
  1539. go Home
  1540. play harpsicord tempo 200 c5 d5 e5 f#5 g5
  1541. end mouseUp
  1542.  
  1543.  
  1544. bkgnd button "Click Here to see Appointment Details"
  1545. on mouseUp
  1546. visual effect zoom in
  1547. hide bkgnd field id 50
  1548. hide bkgnd field id 51
  1549. hide bkgnd field id 53
  1550. hide bkgnd button id 54  -- "Click Here to see Appointment Details"
  1551. hide bkgnd button id 63  --"FindApptTime"
  1552. show bkgnd button id 57  --"Closer Look"
  1553. tabkey
  1554. tabkey
  1555. tabkey
  1556. end mouseUp
  1557.  
  1558.  
  1559.  
  1560. bkgnd button "Closer Look"
  1561. on mouseUp
  1562. if visible of bkgnd field id 50 is false then
  1563. show bkgnd field id 50
  1564. show bkgnd field id 51
  1565. show bkgnd field id 53
  1566. show bkgnd button id 54
  1567. hide bkgnd button id 57  --"Closer Look"
  1568. send mouseUp to bkgnd button id 63
  1569. end if
  1570. end mouseUp
  1571.  
  1572. bkgnd button "Sort"
  1573. on mouseUp
  1574. set cursor to 4
  1575. set lockScreen to true
  1576. push card
  1577. repeat with s = 2 to the number of cards
  1578. sort by field id 43
  1579. sort by field id 2
  1580. end repeat
  1581. pop card
  1582. set lockScreen to true
  1583. beep
  1584. send mouseup to bkgnd button id 63  -- "Find Appt Time"
  1585. end mouseUp
  1586.  
  1587.  
  1588. bkgnd button "Find Appt Time"  --This is a hidden button
  1589. on mouseUp
  1590. apptTimes thisDay
  1591. end mouseUp
  1592.  
  1593.  
  1594. bkgnd button "Help"
  1595. on mouseUp
  1596. show field id 66  --"Help"
  1597. end mouseUp
  1598.  
  1599. This is the end of the scripts for Background #2 --"Appointment Card"
  1600. </script>
  1601.     </part>
  1602.     <name>AppointmentCard</name>
  1603.     <script>on newCard --date stamp
  1604. global whosThere
  1605. put the long date && the time into field "Created"
  1606. ask "What is your name, Please?"  with whosThere
  1607. put it into field id 47  -- field  "My Name"
  1608. put field id 47 into myName
  1609. set locktext of field id 1 to false
  1610. set locktext of field id 2 to false
  1611. set locktext of field id 43 to false
  1612. hide field id 50
  1613. hide field id 51
  1614. hide field id 53
  1615. hide bkgnd button id 54
  1616. hide bkgnd button id 63
  1617. show bkgnd button id 57  --"Closer Look"
  1618. tabkey
  1619. end newCard
  1620.  
  1621. on openCard
  1622. set lockText of background field id 9 to true
  1623. end openCard
  1624.  
  1625. on closeCard
  1626. global whosThere
  1627. put field id 47 into whosThere
  1628. pass closeCard
  1629. end closeCard
  1630.  
  1631.  
  1632. on apptTimes thisDay
  1633. set cursor to 4
  1634. put field id 47 into myName
  1635. put empty into bkgnd field id 50
  1636. put empty into bkgnd field id 51
  1637. put empty into bkgnd field id 53
  1638. put empty into bkgnd field "MoreLinks"
  1639. show field id 50
  1640. show field id 51
  1641. show field id 53
  1642. show bkgnd button id 54
  1643. put zero into apptCount
  1644. put 1 into lineNumber
  1645. put "Scheduled Appointment Times ======>"¬¨
  1646. into line 1 of bkgnd field id 50
  1647. repeat with x = 1 to the number of cards
  1648. get (field id 2 of card x)  --field "Date"
  1649. put it into thisDay
  1650. if thisDay is empty then next repeat
  1651. get (field id 43 of card x)
  1652. put it into thisTime
  1653. if thisDay = bkgnd field id 2 ¬¨
  1654. and (field id 47 of card x) = myName then
  1655. if thisTime is not empty then
  1656. put (field id 43 of card x) into line lineNumber of field id 51
  1657. Put the id of card x into line lineNumber of field "MoreLinks"
  1658. add 1 to lineNumber
  1659. add 1 to apptCount
  1660. else
  1661. if thisTime is empty then next repeat
  1662. end if
  1663. end if
  1664. end repeat
  1665. if apptCount = 0 then
  1666. put "You have"&& "NO" &&"Scheduled Appointments for Today."¬¨
  1667. into field id 53
  1668. else
  1669. if apptCount = 1 then
  1670. put "You have"&& apptCount&& "Scheduled Appointment for Today."¬¨
  1671. into field id 53
  1672. else
  1673. if apptCount ‚â• 2 then
  1674. put "You have"&& apptCount&& "Scheduled Appointments for Today."¬¨
  1675. into field id 53
  1676. end if
  1677. end if
  1678. end if
  1679. get field id 43
  1680. put it into todaysApptTime  --a local variable
  1681. find todaysApptTime in field id 51
  1682. beep
  1683. end apptTimes
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691. </script>
  1692. </background>
  1693.